package com.engine4cloud.tdf.supervision.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.engine4cloud.tdf.common.data.datascope.TdfBaseMapper;
import com.engine4cloud.tdf.supervision.dto.query.DcpgInvestigationQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.DcpgInvestigationResultDTO;
import com.engine4cloud.tdf.supervision.entity.DcpgInvestigationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DcpgInvestigationMapper extends TdfBaseMapper<DcpgInvestigationEntity> {
    /**
     * @param pageable 分页策略
     * @param dto      入参
     * @return IPage<DcpgInvestigationResultDTO>
     */
    IPage<DcpgInvestigationResultDTO> pageList(Page<DcpgInvestigationEntity> pageable, @Param("dto") DcpgInvestigationQueryDTO dto, @Param("deptIdList") List<Long> deptIdList);

    DcpgInvestigationResultDTO detail(@Param("id") Long id);
}